import React from 'react';
import { Route } from 'react-router-dom';

import ErrorBoundaryRoutes from 'app/shared/error/error-boundary-routes';

import ActivityStandard from './activity-standard';
import ActivityStandardDetail from './activity-standard-detail';
import ActivityStandardUpdate from './activity-standard-update';
import ActivityStandardDeleteDialog from './activity-standard-delete-dialog';

const ActivityStandardRoutes = () => (
  <ErrorBoundaryRoutes>
    <Route index element={<ActivityStandard />} />
    <Route path="new" element={<ActivityStandardUpdate />} />
    <Route path=":id">
      <Route index element={<ActivityStandardDetail />} />
      <Route path="edit" element={<ActivityStandardUpdate />} />
      <Route path="delete" element={<ActivityStandardDeleteDialog />} />
    </Route>
  </ErrorBoundaryRoutes>
);

export default ActivityStandardRoutes;
